package com.caishi.lkx.order.pay;

import com.caishi.lkx.order.model.PaymentModel;
import com.caishi.lkx.order.model.PaymentRefundLogModel;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;

import java.util.HashMap;
import java.util.Map;

/**
 * @author by keray
 * date:2021/7/15 10:24 上午
 */
@Configuration
@Slf4j
public class DefaultPay implements PayPlugins {
    @Override
    public Map<String, Object> sign(PaymentModel paymentModel, Object val, Map<String, Object> otherParam) {
        return new HashMap<>();
    }

    @Override
    public boolean prePayCallBack(PaymentModel paymentModel) {
        return true;
    }

    @Override
    public boolean refund(PaymentModel paymentModel, PaymentRefundLogModel paymentRefundLogModel) {
        return false;
    }
}
